package com.net.common.model;

import java.io.Serializable;

/**
 * @author  on 2017/6/12.
 * 数据对象验证的结果
 */
public class Validation implements Serializable {
    private String field; //出错的字段名称,和前端的input name保持一致

    private String code; //出错的代码

    private String message; //出错信息

    public Validation(String field, String code, String message) {
        this.field = field;
        this.code = code;
        this.message = message;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
